home *** CD-ROM | disk | FTP | other *** search
- Path: news.mindspring.com!usenet
- From: rudd@mindspring.com (Justin Rudd)
- Newsgroups: comp.lang.c++
- Subject: Re: Visual C++ help needed!!!!(please)
- Date: Mon, 01 Apr 1996 01:20:53 GMT
- Organization: MindSpring Enterprises
- Message-ID: <4jnb8f$18u8@mule2.mindspring.com>
- References: <4jn1cn$7vo@crash.microserve.net>
- Reply-To: rudd@mindspring.com
- NNTP-Posting-Host: rudd.mindspring.com
- X-Newsreader: Forte Free Agent v0.55
-
- ada105@psu.edu (Alexander Achey) wrote:
-
- > Hi all,
- > I'm attempting to write a Visual C++ program in which I am making it
- >come up with schedules of college courses. I use a modal dialog box
- >to get some information from the user and then I need to have it put
- >this data somewhere I can use it after the box is closed. I tried
- >putting the variables under the public part of the document class, but
- >I can't seem to use the GetDocument() function from the dialog box.
- >Is there any other way to get access to the document's member
- >functions or is there a better way to do this? i tried declaring this
- >as a global variable, but I really don't want to do that. Besides, I
- >keep getign redinifition errors when I do that. I'd really
- >apprecitate it if anyone could give me any kind of help.
-
- In your dialog class have a member function that accepts a pointer to
- a CDocument.
-
- void CMyDialog::SetDocPtr(CMyDoc* pDoc)
- {
- m_pDoc = pDoc;
- }
-
-
- Justin Rudd
- rudd@mindspring.com
- =======================================
- It'll work...trust me ;-)
- =======================================
-
-
-